package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.GoodsInfo;
import com.ktjiaoyu.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsInfoMapper {
    public List<GoodsInfo> getGoodsList(GoodsInfo goodsInfo);
    /**
     * 添加用户
     */
    public int insert(GoodsInfo goodsInfo);

    public int update(GoodsInfo goodsInfo);

    public List<GoodsInfo> getPage(@Param("entity")GoodsInfo entity, @Param("offset") Integer offset, @Param("pageSize")Integer pageSize);

    public Long count(@Param("entity") GoodsInfo entity);

    public GoodsInfo getById(Long id);

    public int deleteById(Long id);

}
